-
Notifications
You must be signed in to change notification settings - Fork 342
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
store split_fields in split #4190
Conversation
d93ed7a
to
d76e27e
Compare
@@ -5528,6 +5528,7 @@ dependencies = [ | |||
"ulid", | |||
"utoipa", | |||
"vrl", | |||
"zstd 0.13.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we have several version of zstd?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah yes. so zstd 0.11 is pulled by lindera's build deps.
0.13 is correct.
@@ -116,13 +117,14 @@ impl SplitPayloadBuilder { | |||
/// Creates a new SplitPayloadBuilder for given files and hotcache. | |||
pub fn get_split_payload( | |||
split_files: &[PathBuf], | |||
serialized_split_fields: &[u8], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You wanted really hard to avoid writing on the file system?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just seemed unnecessary and wasn't much effort. If there's another case, we probably should refactor it to something like
enum SplitFile{
OnDisk(PathBuf),
InMemory(String, Vec<u8>)
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So if I recall correctly, down the stream, we build a PutPayload off these files.
Would it be possible to carry a PutPayload earlier maybe?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I moved it earlier in the code
Description
Describe the proposed changes made in this PR.
How was this PR tested?
Describe how you tested this PR.